Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[draft]vkd-heartbeat: Add execution API to vdk heartbeat #116

Merged
merged 2 commits into from
Aug 24, 2021

Conversation

mrMoZ1
Copy link
Contributor

@mrMoZ1 mrMoZ1 commented Aug 20, 2021

Recently we added a new execution api to the control service.
This change aims to include the new api functionality in the
vdk-heartbeat tests.

This change adds the new functionality of the execute API to the
VDK heartbeat tests. We now have functionality to
check if a data job has a running data jobexecution
and start a data job execution through job_controller.py

The new test flow disables the data job deployment after all other
tests have passed and then checks for a runnig execution.
When there are none we start a new data job execution through the
execution API, and checks that the data job execution has started. Since
the deployment was disabled the only data job execution
that could start is a manual one through the execution api.
Once that execution finishes the test concludes and execution
resources get cleaned up as normal.

Testing: CI/CD

Signed-off-by: Momchil Zhivkov [email protected]

@antoniivanov
Copy link
Collaborator

Why do we need such a test? Please, describe the aim of the change and why it is needed (git template)

This is really important in order to be able to conduct an efficient review. By writing out what is the problem being solved in this change, we make it explicit to reviewers and readers what is in the scope of our change and what it is not. Thus avoiding any potential misunderstanding.
It also is needed so that reviewer can properly look at the code and see that indeed this solution addresses the described problem.

@antoniivanov
Copy link
Collaborator

How much time did the test takes now? We need to be careful to keep the test duration under control.

How did you test it ? I see no testing done in the description.

You can bump version vdk-heartbeat to trigger release upon merge.

@mrMoZ1 mrMoZ1 force-pushed the person/mzhivkov/add-execute-api branch from a368fab to 25df9b5 Compare August 20, 2021 11:32
@mrMoZ1 mrMoZ1 force-pushed the person/mzhivkov/add-execute-api branch 5 times, most recently from 37a2d49 to 0eb802d Compare August 23, 2021 16:05
Copy link
Collaborator

@antoniivanov antoniivanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look ok to me. I made some small comments that you can check

Recently we added a new execution api to the control service.
This change aims to include the new api functionality in the
vdk-heartbeat tests.

This change  adds the new functionality of the execute API to the
VDK heartbeat tests. We now have functionality to
check if a data job has a running data jobexecution
and start a data job execution through job_controller.py

The new test flow disables the data job deployment after all other
tests have passed and then checks for a runnig execution.
When there are none we start a new data job execution through the
execution API, and checks that the data job execution has started. Since
the deployment was disabled the only data job execution
that could start is a manual one through the execution api.
Once that execution finishes the test concludes and execution
resources get cleaned up as normal.

Testing: CI/CD

Signed-off-by: Momchil Zhivkov <[email protected]>
@mrMoZ1 mrMoZ1 force-pushed the person/mzhivkov/add-execute-api branch from 0eb802d to ec58436 Compare August 23, 2021 16:17
@mrMoZ1 mrMoZ1 merged commit 2a5c85d into main Aug 24, 2021
@mrMoZ1 mrMoZ1 deleted the person/mzhivkov/add-execute-api branch August 24, 2021 07:48
kostoww pushed a commit that referenced this pull request Aug 29, 2021
Recently we added a new execution api to the control service.
This change aims to include the new api functionality in the
vdk-heartbeat tests.

This change  adds the new functionality of the execute API to the
VDK heartbeat tests. We now have functionality to
check if a data job has a running data jobexecution
and start a data job execution through job_controller.py

The new test flow disables the data job deployment after all other
tests have passed and then checks for a runnig execution.
When there are none we start a new data job execution through the
execution API, and checks that the data job execution has started. Since
the deployment was disabled the only data job execution
that could start is a manual one through the execution api.
Once that execution finishes the test concludes and execution
resources get cleaned up as normal.

Testing: CI/CD

Signed-off-by: Momchil Zhivkov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants